// Copyright (C) joyinter
// All rights reserved.
// 
// Author : Jiang Li
// Date   : 2004-11-6

#include "stdafx.h"
#include "net_overlapped.h"
#include "net_sockdata.h"

namespace JoyServer
{

CJoyOverlapped::CJoyOverlapped(CJoySockData* sockData)
{
    ASSERT(sockData != NULL);

    memset(&m_overlapped, 0, sizeof(m_overlapped));
    m_sockData = sockData;
    m_sockData->AddRef();
}

CJoyOverlapped::~CJoyOverlapped()
{
    if(m_sockData != NULL)
    {
        m_sockData->Release();
    }
}

void CJoyOverlapped::OnComletion(DWORD dwTransferred, DWORD err)
{
    dwTransferred;err;
}

} // namespace JoyServer